find the lexicographically largest string from the box i